package com.fun.demo.fun;

import java.io.UnsupportedEncodingException;
import java.net.URISyntaxException;

public class URITest {




    public static void main(String[] args) throws UnsupportedEncodingException, URISyntaxException {
//        String url = "http://192.168.0.81:8080/App/Loginx.do?par=abc";
//
//        String nurl = URLDecoder.decode(url,"UTF-8" );
//        System.out.println(nurl);
//
////        String eurl = URLEncoder.encode(url, "UTF-8");
////        System.out.println(eurl);
////
////        URI uri = new URI(url);
////        System.out.println(uri.getHost());
////
////        String nurl = URLDecoder.decode(eurl,"UTF-8" );
////        URI euri = new URI(nurl);
////        System.out.println(nurl);
////        System.out.println(euri.getHost());


    }
}
